package communication.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;


/**
 * @author mac
 */
@SpringBootApplication
@ComponentScan(value = "communication")
public class SpringServer {

    public static void main(String[] args) {
        // 非web项目启动
//        new SpringApplicationBuilder(SpringServer.class)
//                .web(WebApplicationType.NONE)
//                .run(args);


        SpringApplication.run(SpringServer.class, args);
    }

}
